home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 9237 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: newshost.lanl.gov!tanmoy
  2. From: tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Newbie doesn't understand compiler error
  5. Date: 08 Mar 1996 17:00:49 GMT
  6. Organization: Los Alamos National Laboratory
  7. Message-ID: <TANMOY.96Mar8100049@qcd.lanl.gov>
  8. References: <Pine.SUN.3.91.960301153010.11258B-100000@pioneer.uspto.gov>
  9.     <4hoffl$l74@aphex.direct.ca>
  10. NNTP-Posting-Host: qcd.lanl.gov
  11. Mime-Version: 1.0
  12. Content-Type: text
  13. In-reply-to: etoivane@direct.ca's message of 8 Mar 1996 05:10:13 GMT
  14.  
  15. In article <4hoffl$l74@aphex.direct.ca>
  16. etoivane@direct.ca (Ed Toivanen) writes:
  17.  
  18. ET:  
  19. ET: >
  20. ET: >main( int argv, char *argc[] )  <<- Compiler states "Syntax error
  21. at or near 
  22. ET: 
  23. ET: Try 
  24. ET:  main(int argc, char* argv[])
  25. ET: 
  26. ET: That should fixn things up.
  27.  
  28. How? What is wrong with the original poster's code?
  29.  
  30. (I think the original poster was using non-ANSI compiler).
  31.  
  32. Cheers
  33. Tanmoy
  34. --
  35. tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242)
  36. Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87545 H:#9,3000,Trinity Drive,NM87544
  37. Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>,
  38. <http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/
  39. internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html>
  40. fax: 1 (505) 665 3003   voice: 1 (505) 665 4733    [ Home: 1 (505) 662 5596 ]
  41.